﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebWise.Controllers;

namespace WebWise.Models
{
    public class HowToModel : LayoutModel
    {
        public string title { get; set; }
        public string introText { get; set; }
        public string contactText { get; set; }
        public string downloadsText { get; set; }
        public Boolean numValid { get; set; }
        public LayoutModel home { get; set; }


        public HowToModel(int articleNum)
        {
            home = SuperController.GetGlobalModel();
            MyLinks = home.MyLinks;

            switch (articleNum)
            {
                case 1:
                    proPricer();
                    break;
                case 2:
                    OSP();
                    break;
                case 3:
                    eTime();
                    break;
                case 4:
                    sugarCRM();
                    break;
                default:
                    numValid = false;
                    break;
            }

            //title = MvcHtmlString.Create(title);
        }

        public void articleLookup(int num)
        {
            //This function will be used for the next phase of the project, when a full SQL database is hooked up.

        }

        public void proPricer()
        {
            title = @"ProPricer";
            introText = @"<p>ProPricer is a tool used by the SPA team and representatives in each lab to create proposals for projects.</p>
                <p><b></b></p>
<p><b>Version 9.0 Installation:</b></p>
<p>There are two versions of each (SE and EE)  client, one for the 32bit version of Windows 7, and one for 64bit version. 32bit users should install the software ending in x86. 64bit users must use the version ending in x64. Your PC should meet the following requirements.</p>
<p class=""Default""><b>SE/EE Client Requirements:</b></p>
<ul>
<li>Pentium 4 </li>
<li>32bit OS (XP) = 2GB RAM</li>
<li>64bit OS (Windows 7) = 4GB RAM</li>
<li>.NET Framework 3.5 SP1</li>
<li>HD Requirement = 80MB (not including database)</li>
</ul>";
            downloadsText = @"<p><strong>Downloads/Instructions</strong></p>
<p><a href=""/files/media/esd/9_0_121_0_000_pp_se_client_x64.exe"">Propricer SE 64bit version binary</a></p>
<p><a href=""/files/media/esd/9_0_121_0_000_pp_se_client_x86.exe"">Propricer SE 32bit version binary</a></p>
<p><a href=""/files/media/esd/9_0_121_0_000_pp_ee_client_x64.exe"">Propricer EE 64bit version binary</a></p>
<p><a href=""/files/media/esd/9_0_121_0_000_pp_ee_client_x86.exe"">Propricer EE 32bit version binary</a></p>
<p><a href=""/files/media/esd/GTRI_PP9_Production_Icon.exe"">Production Icon Creator</a> (Use this to create an icon that points to the production database if an install was done that is pointing to a dev or test database.)</p>
<p><a href=""/files/media/esd/GTRI_PP9_Test_Icon.exe"">Test Icon Creator</a> (Use this to create an icon that points to the test database if an install was done that is pointing to a dev or prod database.)</p>
<p><a href=""/files/media/esd/GTRI_PP9_Dev_Icon.exe"">Development Icon Creator</a> (Use this to create an icon that points to the development database if an install was done that is pointing to a test or prod database.)</p>
<p><a href=""/files/media/esd/PIT_ProPricer9.0Installation_181212_1459_14.pdf"">Propricer Installation Guide</a><img src=""/img/icons/pdf.png"" /></p>
<p><a href=""/files/media/esd/PIT_ProPricer9.0Deactivation_181212_1502_16.pdf"">License Deactivation Process Guide</a><img src=""/img/icons/pdf.png"" /></p>
<p><a href=""/files/media/esd/ProPricer_ME_9.0_Manual.pdf"">Propricer SE Manual</a><img src=""/img/icons/pdf.png"" /></p>
<p><a href=""/files/media/esd/ProPricer_EE_9.0_Manual.pdf"">Propricer EE Manual</a><img src=""/img/icons/pdf.png"" /></p>
<p><a href=""/files/media/esd/ProPricer_v90_Build_120_Release_Notes.pdf"">Propricer 9.0 Build 120 Release Notes</a><img src=""/img/icons/pdf.png"" /></p>
<p>&nbsp;</p>";
            contactText = @"<p><strong>Further Assistance</strong></p>
<p>For technical assistance, contact your CSR.</p>
<p>For functional assistance, contact Dell Arrington at <a href=""mailto:Dell.Arrington@gtri.gatech.edu"">Dell.Arrington@gtri.gatech.edu</a></p>
<p>&nbsp;</p>";
            numValid = true;
        }

        public void OSP()
        {
            title = @"OSP System";
            introText = @"<p>With the OSP system the following key features are supported.</p>
<ul>
<li>Proposal Maintenance</li>
<li>Project Maintenance</li>
<li>Project Deliverable Management</li>
<li>SubAgreement Management</li>
<li>Billing</li>
<li>Discrete GTRC Options</li>
<li>Scanned Documents</li>
<li>BAUS</li>
</ul>
<p class=""p1"">&nbsp;</p>
<p class=""p1""><b>How to:-</b>  </p>
<ul>
<li><a href=""/tools/osp/add-project-abstract"">Add Project Abstract</a> </li>
</ul>
<p>&nbsp;</p>
<p class=""p2"">&nbsp;</p>
<p class=""p2""><b>Problems in viewing OSP PDF documents in WebWISE.</b></p>
<p class=""p2"">&nbsp;</p>
<p class=""p2"">NOTE: Viewing OSP scanned documents does not work with IE 9 – the site is not compatible yet.</p>
<p class=""p2"">&nbsp;</p>
<p class=""p2"">Some users have also experience a problem when using other browsers. If when trying to view documents you see a dialog message that’s says it is necessary to install  a Microsoft Visual Basic 5.0 Control Cabinets File then the following steps should be followed :-</p>
<p class=""p2"">&nbsp;</p>
<p class=""p2"">1. Locate the file DMWebFileIO2.ocx on the PC.  Normally this can found it at C:\windows\Downloaded Program Files\</p>
<p class=""p2"">2. Unregister the file (regsvr32 -u &quot;C:\windows\Downloaded Program Files\DMWebFileIO2.ocx&quot;).  Occasionally users have experienced machines thrown an error at this step, this error can be ignored.</p>
<p class=""p2"">3. Delete the DMWebFileIO2.ocx file.  (Windows 7 machines require admin rights to delete the file FYI).</p>
<p class=""p2"">4. Run the Web Cab Install program to install the controls on the machine (DataMagine Web Cabs.msi – which can be downloaded<b> </b><a href=""/files/media/esd/DataMagine_Web_Cabs.msi""><b>here</b></a><b>.</b></p>
<p class=""p2"">5. When the user goes to pull documents the first time they'll be prompted to run or install some controls, only this time after they do this (about 7 times, because there are about 7 controls) they'll be able to see the documents.</p>
<p class=""p2"">&nbsp;</p>
<p class=""p2"">This site is still not compatible with IE 9 yet (just FYI). </p>
<p class=""p2"">&nbsp;</p>";
            downloadsText = @"This article contains no additional file downloads.";
            contactText = @"<p class=""p2"">For more information then please contact :-</p>
<ul class=""ul1"">
<li class=""li3"">Nick Perez (GTRC), 404-894-1657<br /><a href=""mailto:Nick.perez@gtrc.gatech.edu"">Nick.perez@gtrc.gatech.edu</a> </li>
</ul>
<p>&nbsp;</p>
<p>All other issues  please call or email the following: </p>
<ul>
<li>David Rimmer (ESD), 404-407-8128,<br /><a href=""mailto:david.rimmer@gtri.gatech.edu"">david.rimmer@gtri.gatech.edu</a></li>
</ul>
<p> </p>";
            numValid = true;
        }

        public void eTime()
        {
            title = @"eTime";
            introText = @"<p>GTRI is has implemented an electronic time capture system. This page is designed to provide information on the eTime system and provide links to available resources.</p><h3>Version 8</h3><ul><li><a href=""/howto/tools/etime/etime-version-8-support"">etime version 8 browser support </a>
<table cellSpacing=""5"" id=""etime-v7"" style=""border: #d1d1d1 1px solid""><thead bgColor=""#014600"" style=""background-color: #011461""><tr bgColor=""#014600"" style=""background-color: #011461""><td bgColor=""#014600"" style=""background-color: #011461""> </td><th bgColor=""#014600"" style=""background-color: #011461""><p>Supported Software</p></th><th bgColor=""#014600"" style=""background-color: #011461""><p>Supported Browsers</p></th></tr></thead><tbody style=""vertical-align: top""><tr style=""border: #d1d1d1 1px solid""><th><p>Windows</p></th><td><li>Windows 7 32-bit (x86) or 64-bit (x64)</li><li>Windows Vista SP2 64-bit (x64)</li></td><td><li>Internet Explorer 8.0 (x86, x64)</li><li>Internet Explorer 7.0 (x64)</li><li>Firefox 3.5 </li></td></tr><tr class=""alt"" style=""border: #d1d1d1 1px solid""><th><p>Mac</p></th><td><p>Mac OSX</p></td><td><li>Safari 4.0 </li><li>Firefox 3.5</li></td></tr><tr class=""alt"" style=""border: #d1d1d1 1px solid""><th><p>Linux</p></th><td><p>Netscape 9</p><p>Linux Red Hat Enterprise OS 5. Desktop Web Browsers (Linux)</p></td><td><li>Firefox 3.5 </li></td></tr></tbody></table><br /><br /><table cellSpacing=""0"" id=""etime-v7"" style=""border: #d1d1d1 1px solid""><thead bgColor=""#014600"" style=""background-color: #011461""><tr bgColor=""#011461"" style=""background-color: #011461""><td align=""left"" bgColor=""#014600"" style=""background-color: #011461""> </td><th bgColor=""#014600"" style=""background-color: #011461""><p>De-Supported Software</p></th><th bgColor=""#014600"" style=""background-color: #011461""><p>De-Supported Browsers</p></th></tr></thead><tbody style=""vertical-align: top""><tr style=""border: #d1d1d1 1px solid""><th><p>Windows</p></th><td align=""center"" vAlign=""middle"">Windows 2000 Professional with SP4</td><td>Internet Explorer 6.x<br />Safari 2.0<br />Firefox 2.0 </td></tr><tr class=""alt"" style=""border: #d1d1d1 1px solid""><th><p>Mac</p></th><td> </td><td>Firefox 2.0</td></tr><tr class=""alt""><th><p>Linux</p></th><td><p>Netscape 9</p><p>Linux Red Hat Enterprise OS 5. Desktop Web Browsers (Linux)</p></td><td><p>Firefox 1.5 </p></td></tr><tr class=""alt"" style=""border: #d1d1d1 1px solid""><th><p>Unix</p></th><td><p>Unix Sun Solaris 10 (32-bit or 64-bit/x64)</p></td><td>Firefox 2.0 </td></tr></tbody></table><p><br /><a href=""/files/media/tools/etime_and_google_chrome.docx"">Google Chrome is not a supported browser for eTime, but the only currently known issue is with charge code lookups.  Click here for more information</a>. <img src=""/img/icons/doc.png"" /></p>";
            downloadsText = @"<ul><li><a href=""/files/media/esd/GTRI_TimeCollection_Quick_Start.ppt"">GTRI Time Collection Quick Start</a> <img src=""/img/icons/ppt.png"" /></li><li><a href=""/files/media/esd/GTRI_TC_Employee_User_Guide_v4.pdf"">GTRI Time Collection Employee User Guide</a> <img src=""/img/icons/pdf.png"" /></li><li><a href=""/files/media/esd/GTRI_TC_Super_Admin_User_Guide_v4.doc"">GTRI Time Collection Supervisor and Administrator User Guide</a> <img src=""/img/icons/doc.png"" /></li><li><a href=""/files/media/esd/GTRI_New_Employee_Time_Reporting_Training.ppt"">GTRI New Employee Time Reporting</a> <img src=""/img/icons/ppt.png"" /></li><li><a href=""/files/media/esd/GTRI_New_Employee_Time_Certification.doc"">GTRI New Employee Time Certification Form</a> <img src=""/img/icons/doc.png"" /></li><li><a href=""/files/media/esd/FAQ.doc"">Frequently Asked Questions</a> <img src=""/img/icons/doc.png"" /></li><li><a href=""/files/media/esd/Advance_Travel_Entry.doc"">Advance Travel Entry</a> <img src=""/img/icons/doc.png"" /></li><li><a href=""/files/media/esd/Correcting_Timesheets.doc"">Correcting Timesheets</a> <img src=""/img/icons/doc.png"" /></li><li>Paper Timesheet Templates <img src=""/img/icons/xls.png"" /> <ul><li><a href=""/files/media/esd/Copy_of_Monthly_Timesheet.xls"">Monthly Timesheet</a></li><li><a href=""/files/media/busserv/BIWK4_TIMESHEET_FY2005.xls"">Bi-weekly Staff Timesheet</a></li><li><a href=""/files/media/esd/Copy_of_GTRI_Overtime_Report.xls"">GTRI Overtime Report</a><span class=""Apple-style-span"" style=""line-height: 16px; color: #7d6a36; font-size: 16px""> </span></li></ul></li></ul>";
            contactText = @"<li>General support: <a href=""mailto:tc_admin@gtri.gatech.edu"">tc_admin</a></li><li>Functional: <a href=""mailto:tam.muto@gtri.gatech.edu"">Tam Muto</a>, (404) 407-6704</li><li>Technical: <a href=""mailto:david.rimmer@gtri.gatech.edu"">Dave Rimmer</a>, (404) 407-8128</li></ul>";
            numValid = true;
        }

        public void sugarCRM()
        {
            title = @"SugarCRM";
            introText = @"<p>GTRI has implemented a Customer Relationship Management tool.  The Business Development Office completed the Phase 2 rollout of the SugarCRM project.  The CRM tool provides management of sponsor contracts, opportunities, and contracting information to help prepare GTRI personnel for their customer experiences.  SugarCRM also provides metrics reporting tools for our customer relations. </p><p><span style=""font-size: 11pt; font-family: 'Calibri','sans-serif'""></span>This 'How-To' page is designed to provide documents, install files, training videos and other information on the SugarCRM tool to those licensed users.  </p><p>&nbsp;</p><p><b><u>Website</u></b></p><ul><li><a href=""/sugar"">https://webwise.gtri.gatech.edu/sugar</a></li></ul><p>&nbsp;</p><p><b><u>Version</u></b></p><ul><li>SugarCRM version 6.4</li></ul><p>&nbsp;</p><p><b><u>Browser Support</u></b></p><ul><li>MS Internet Explorer 8 or 9</li><li>Firefox 12 or higher </li><li>Safari 5.1</li><li>Google Chrome 19</li></ul><p>&nbsp;</p>";
            downloadsText = @"<p><b><u>Downloads/Instructions</u></b></p><ul><li><a href=""/files/media/tools/Sugar_LinkedIN_Contacts_Import"">Import Contacts from LinkedIn to SugarCRM</a> <img src=""/img/icons/oxygen/16x16/mimetypes/application-vnd.ms-word.png"" /></li><li>'Outlook Connector' Installation Instructions<br /><ul><li>&quot;<a href=""/files/media/tools/Sugar_Plugin_for_Outlook_2010_x64_December2011_Full.zip"">Outlook Connector - 2010</a>&quot; install file (for Outlook 2010, 64-bit plugin installer) - <i>Updated 2/1/12</i></li><li>&quot;<a href=""/files/media/tools/Sugar_Plugin_for_Outlook_2010_x86_December2011_Full.zip"">Outlook Connector - 2010</a>&quot; install file (for Outlook 2010, 32-bit plugin installer) - <i>Updated 2/1/12</i>  </li><li><a href=""/files/media/tools/SugarOutlook_Plugin_for_Outlook_2010_Installation_Guide_1.pdf"">&quot;Instructions for 2010&quot;</a> <img src=""/img/icons/pdf.png"" /> - <i>Updated 5/1/12</i></li></ul><ul><li>&quot;<a href=""/files/media/tools/Sugar_Plugin_for_Outlook_2007_6.0.2_Full_808.zip"">O</a><a href=""/files/media/tools/Sugar_Plugin_for_Outlook_2007_6.0.2_Full_808.zip"">utlook Connector - 2007</a>&quot; install file (for Outlook 2007)</li><li>&quot;<a href=""/files/media/tools/SugarPluginConfigInstructions.pdf"">SugarPluginConfigInstructions.pdf</a>&quot;<img src=""/img/icons/pdf.png"" /> (for Outlook 2007)  </li></ul></li><li>'NeatDesk' Card Scanning Instructions <ul><li>&quot;<a href=""/files/media/tools/Neat_Card_Scanning_Cheat_Sheet_1.pdf"">Neat Card Scanning Cheat Sheet.pdf</a>&quot; <u><img src=""/img/icons/pdf.png"" /></u></li><li>&quot;<a href=""/files/media/tools/Multi_User_Card_Scanning_1.pdf"">Multi User Card Scanning.pdf</a>&quot;      <img src=""/img/icons/pdf.png"" /></li></ul></li></ul><p>&nbsp;</p><p><b><u>Training Videos (.flv filetype)</u></b></p><ul><li><a href=""/files/sugar/Atcore-Importing.flv"">Importing - How to import records into SugarcRM using Excel or CSV</a></li><li><a href=""/files/sugar/GTRI-Sugar_Outlook_Connector.flv"">Importing - How to import records into SugarCRM using Outlook Connector</a> </li></ul><ul><li><a href=""/files/sugar/Atcore-Building_Dashboards.flv"">Dashboards - How to build your Dashboard in SugarCRM</a></li><li><a href=""/files/sugar/GTRI-Search.flv"">Searching - Training on how to Search in SugarCRM</a></li></ul><ul><li><a href=""/files/sugar/Atcore-Building_a_Rows_and_Columns_Report.flv"">Reports - Building a Rows &amp; Columns Report</a></li><li><a href=""/files/sugar/SummationDetails.flv"">Reports - Summation Details</a> </li><li><a href=""/files/sugar/Matrix.flv"">Reports - Building a Matrix Report</a></li><li><a href=""/files/sugar/Admin_Panel_Slower.flv"">Admin Training</a></li></ul><p>&nbsp;</p><p><b><u>Training Videos (.mp4 filetype)<br /></u></b></p>Lead and Contact related:<br /><ul><li><a href=""/files/media/tools/Introduction_to_Leads.mp4"">Introduction to Leads</a></li><li><a href=""/files/media/tools/Lead_Conversion.mp4"">Lead Conversion </a></li></ul>How to install and use your scanner:<br /><ul><li><a href=""/files/media/tools/Import_Contacts_as_Leads.mp4"">Import Contacts as Leads </a></li><li><a href=""/files/media/tools/Complete_Scanner_Installation_Video.mp4"">Complete Scanner Installation</a> </li><li><a href=""/files/media/tools/Shared_Card_Scanner_1.mp4"">Shared Card Scanner</a> </li></ul><p>&nbsp;</p><b><u>Definitions of Terms and Rules<br /></u></b><p>The documents below have definitions associated with terms that you will encounter throughout SugarCRM, and the rules while using the CRM:</p><ul><li>&quot;<a href=""/files/media/tools/Sugar___Definitions_1.docx"">Definitions.doc</a>&quot;<img src=""/img/icons/oxygen/16x16/mimetypes/application-vnd.ms-word.png"" /></li><li>&quot;<a href=""/files/media/tools/Sugar___Rules_and_Policies.docx"">Rules.doc</a>&quot; <img src=""/img/icons/oxygen/16x16/mimetypes/application-vnd.ms-word.png"" /></li></ul><br />";
            contactText = @"<p><b><u>Need Further Assistance?</u></b></p><p>If you have questions while using the SugarCRM system please email the following:</p><ul><li><a href=""mailto:webwise.sugar.help@gtri.gatech.edu"">webwise.sugar.help@gtri.gatech.edu</a></li></ul><p>Project Management Contacts:</p><ul><li><a href=""mailto:trina.brennan@gtri.gatech.edu"">Trina Brennan</a> - 404-407-7695</li><li><a href=""mailto:dean.singley@gtri.gatech.edu"">Dean Singley</a> - 404-407-6182</li></ul>";
            numValid = true;
        }
    }
}